tool
extends ImmediateGeometry

func setup(size: int):
	clear()
	begin(Mesh.PRIMITIVE_LINES)
	for i in range(-size, size + 1):
		add_vertex(Vector3(i, 0, -size))
		add_vertex(Vector3(i, 0, size))
		add_vertex(Vector3(-size, 0, i))
		add_vertex(Vector3(size, 0, i))
	end()
